body {
    margin: 0;
    overflow: hidden;
    background-color: #87CEEB; /* Sky blue */
    font-family: sans-serif;
    color: white;
    text-shadow: 1px 1px 2px black;
    transition: background-color 0.5s ease-in-out; /* Smooth transition for background */
}
#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    transition: none; /* Remove transition to make camera movement smooth during animation */
}
#ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px; /* Same height as grass */
    background-image: url('grass_texture.png');
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: auto 200px;
    z-index: 1;
    display: none; /* Only shown outdoors */
}
#cat {
    position: absolute;
    bottom: 10%; /* Adjust as needed */
    left: 50px;
    width: 300px;
    height: 200px;
    image-rendering: pixelated;
    z-index: 10;
    transition: left 0.3s linear, transform 0.1s linear, bottom 0.3s ease-in-out; /* Smooth movement for clicks and vertical change */
}
#cat.walking {
    /* Add walking animation later if desired */
}
#house {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 400px;
    background-color: #8B4513; /* Brown */
    border-radius: 10px 10px 0 0;
    z-index: 5;
    display: none; /* Hidden by default, shown when inside */
}
#house-door {
    position: absolute;
    bottom: 0;
    right: 20px;
    width: 80px;
    height: 120px;
    background-color: #5C4033; /* Darker brown */
    border-radius: 5px 5px 0 0;
    cursor: pointer;
}
#fishing-spot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 1200px; /* Doubled from 600px to 1200px to make water even deeper */
    background-color: #00008B; /* Dark blue for water */
    border-radius: 20px 20px 0 0;
    z-index: 5;
}
#boat {
    position: absolute;
    bottom: 8%;
    width: 150px;
    height: auto; /* Changed to auto to maintain aspect ratio */
    display: none;
    z-index: 8;
    transform: translateX(-50%);
    transition: left 0.3s ease-in-out;
    background: none; /* Remove brown background */
}
#fishing-pole {
    position: absolute;
    bottom: 100px;
    right: 150px;
    width: 10px;
    height: 100px;
    background-color: gray;
    transform-origin: bottom center;
    transform: rotate(-30deg);
    display: none; /* Hidden until fishing */
    z-index: 11; /* Make sure pole is visible above water */
}
#fish-line {
    position: absolute;
    width: 2px;
    background-color: white;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 0; /* Animated */
    display: none;
    transition: none; /* Remove transition to make line extension smooth during animation */
    z-index: 11; /* Make sure line is visible */
}
#fish-indicator {
    position: absolute;
    width: 60px;
    height: auto;
    background-color: transparent;
    border-radius: 50%;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 1s ease-in-out;
    cursor: pointer;
    z-index: 15; /* Changed from 6 to 15 to be above the cat (which is 10) */
}
#fish-indicator img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure the image fits within the div */
}
#inventory, #stats {
    position: absolute;
    top: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    z-index: 20;
    min-width: 150px;
}
#inventory {
    left: 10px;
}
#stats {
    right: 10px;
}
#shop-button {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 20;
}
#shop-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.85);
    padding: 20px;
    border-radius: 10px;
    z-index: 100;
    text-align: center;
    border: 2px solid #ddd;
    min-width: 300px;
}
#shop-content {
    margin-bottom: 20px;
}
#close-shop-button {
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
#message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    display: none;
    z-index: 100;
    text-align: center;
}